<th:block th:fragment="js">
    <script th:src="@{/js/dashboard.js}"></script>
</th:block> 